import request from '@/utils/request'

// 获取总体统计概览
export function getStatisticsOverview() {
  return request({
    url: '/tool/gen/statistics/overview',
    method: 'get'
  })
}

// 获取即将到期企业列表
export function getExpiringEnterprises(params: any) {
  return request({
    url: '/tool/gen/statistics/expiring',
    method: 'get',
    params
  })
}

// 获取楼宇统计信息
export function getBuildingStatistics() {
  return request({
    url: '/tool/gen/statistics/buildings',
    method: 'get'
  })
}

// 获取企业统计信息
export function getEnterpriseStatistics() {
  return request({
    url: '/tool/gen/statistics/enterprises',
    method: 'get'
  })
}